package com.ruoyi.finance.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 账套对象 t_account_sets
 *
 * @author ruoyi
 * @date 2025-02-22
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class TAccountSets {
    /**
     * 账单序号
     */
    @Excel(name = "账单序号")
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 账单名称
     */
    @Excel(name = "账单名称")
    private String name;

    /**
     * 单位名称
     */
    @Excel(name = "单位名称")
    @NotBlank(message = "单位名称不能为空")
    private String dwName;

    /**
     * 账套启用时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8", shape = JsonFormat.Shape.STRING)
    @Excel(name = "账套启用时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @NotNull(message = "账套启用时间不能为空")
    private Date startTime;

    /**
     * 会计准则
     */
    @Excel(name = "会计准则")
    private Long normId;

    /**
     * 行业id
     */
    @Excel(name = "行业id")
    private Long industryId;

    /**
     * 统一社会信用代码
     */
    @Excel(name = "统一社会信用代码")
    private String unifiedSocialCreditCode;

    /**
     * 经营地址
     */
    @Excel(name = "经营地址")
    private String businessAddress;

    /**
     * 联系人
     */
    @Excel(name = "联系人")
    private String contactPerson;

    /**
     * 联系电话
     */
    @Excel(name = "联系电话")
    private String contactPhone;

    /**
     * 税号
     */
    @Excel(name = "税号")
    private String taxNumber;

    /**
     * 增值税种类
     */
    @Excel(name = "增值税种类")
    private Long vatType;

    /**
     * 备注
     */
    @Excel(name = "备注")
    private String remarks;

    /**
     * 创建人
     */
    @TableField(fill = FieldFill.INSERT)
    private Long createId;
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 修改人
     */
    @TableField(fill = FieldFill.UPDATE)
    private Long updateId;
    @TableField(fill = FieldFill.UPDATE)
    private Date updateTime;

    /**
     * 逻辑删除
     */
    @TableField(fill = FieldFill.INSERT)
    private Long deleteType;

    /**
     * 版本号
     */
    @TableField(fill = FieldFill.INSERT)
    private Long bbNumber;

}
